package com.qf.mapper;

import com.qf.pojo.Shop;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/*
@author fu
@date 2022/3/2622:07
商品的数据访问接口
*/
@Repository
public interface ShopMapper {

    //查询所有商品
    List <Shop> findAll();

    //通过商品id查询用户
    Shop seleceShopById(Integer shopId);

    //修改商品
    Integer updateShop(Shop shop);

    //删除商品
    Integer deteleShop(@Param("id") Integer id);

    //增加商品
    Integer addShop(Shop shop);
}
